var o, e = require, t = module, n = exports, i = this && this.__extends || (o = function(t, e) {
    return (o = Object.setPrototypeOf || {
        __proto__: []
    } instanceof Array && function(t, e) {
        t.__proto__ = e;
    } || function(t, e) {
        for (var o in e) e.hasOwnProperty(o) && (t[o] = e[o]);
    })(t, e);
}, function(t, e) {
    function n() {
        this.constructor = t;
    }
    o(t, e), t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, 
    new n());
}), a = this && this.__decorate || function(t, e, o, n) {
    var r, c = arguments.length, i = c < 3 ? e : null === n ? n = Object.getOwnPropertyDescriptor(e, o) : n;
    if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) i = Reflect.decorate(t, e, o, n); else for (var s = t.length - 1; 0 <= s; s--) (r = t[s]) && (i = (c < 3 ? r(i) : 3 < c ? r(e, o, i) : r(e, o)) || i);
    return 3 < c && i && Object.defineProperty(e, o, i), i;
};

Object.defineProperty(n, "__esModule", {
    value: !0
});

var r = cc._decorator, s = r.ccclass, c = (r.property, function(t) {
    function e() {
        return null !== t && t.apply(this, arguments) || this;
    }
    return i(e, t), e.prototype.start = function() {
        cc.tween(this.node).repeatForever(cc.tween().by(.6, {
            position: cc.v2(0, 5)
        }).by(.8, {
            position: cc.v2(0, -5)
        })).start();
    }, e.prototype.update = function() {
        0 == this.node.childrenCount ? this.node.pauseAllActions() : this.node.resumeAllActions();
    }, a([ s ], e);
}(cc.Component));

n.default = c;